﻿package src.uipackage.ui.graphics {
	
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.filters.DropShadowFilter;
	
	/**
	* Creates cursor graphic for OBO_NumberScrubber class.
	* @author Devon O.
	*/

	public class NumberScrubberGraphic extends Bitmap {
		
		private static const WHITE:uint = 0xFFFFFFFF;
		private static const BLACK:uint = 0xFF000000;
		
		public function NumberScrubberGraphic():void {
			
			var bmd:BitmapData = new BitmapData(17, 17, true, 0x00FFFFFF);
			
			bmd.setPixel32(3, 0, WHITE);
			bmd.setPixel32(13, 0, WHITE);
			
			bmd.setPixel32(2, 1, WHITE);
			bmd.setPixel32(3, 1, BLACK);
			bmd.setPixel32(4, 1, WHITE);
			bmd.setPixel32(7, 1, BLACK);
			bmd.setPixel32(8, 1, BLACK);
			bmd.setPixel32(9, 1, BLACK);
			bmd.setPixel32(12, 1, WHITE);
			bmd.setPixel32(13, 1, BLACK);
			bmd.setPixel32(14, 1, WHITE);
			
			bmd.setPixel32(1, 2, WHITE);
			bmd.setPixel32(2, 2, BLACK);
			bmd.setPixel32(3, 2, BLACK);
			bmd.setPixel32(4, 2, WHITE);
			bmd.setPixel32(5, 2, WHITE);
			bmd.setPixel32(6, 2, BLACK);
			bmd.setPixel32(7, 2, WHITE);
			bmd.setPixel32(8, 2, WHITE);
			bmd.setPixel32(9, 2, BLACK);
			bmd.setPixel32(10, 2, BLACK);
			bmd.setPixel32(11, 2, WHITE);
			bmd.setPixel32(12, 2, WHITE);
			bmd.setPixel32(13, 2, BLACK);
			bmd.setPixel32(14, 2, BLACK);
			bmd.setPixel32(15, 2, WHITE);
			
			bmd.setPixel32(0, 3, WHITE);
			bmd.setPixel32(1, 3, BLACK);
			bmd.setPixel32(2, 3, BLACK);
			bmd.setPixel32(3, 3, BLACK);
			bmd.setPixel32(4, 3, BLACK);
			bmd.setPixel32(5, 3, BLACK);
			bmd.setPixel32(6, 3, BLACK);
			bmd.setPixel32(7, 3, WHITE);
			bmd.setPixel32(8, 3, WHITE);
			bmd.setPixel32(9, 3, BLACK);
			bmd.setPixel32(10, 3, BLACK);
			bmd.setPixel32(11, 3, BLACK);
			bmd.setPixel32(12, 3, BLACK);
			bmd.setPixel32(13, 3, BLACK);
			bmd.setPixel32(14, 3, BLACK);
			bmd.setPixel32(15, 3, BLACK);
			bmd.setPixel32(16, 3, WHITE);
			
			bmd.setPixel32(1, 4, WHITE);
			bmd.setPixel32(2, 4, BLACK);
			bmd.setPixel32(3, 4, BLACK);
			bmd.setPixel32(4, 4, WHITE);
			bmd.setPixel32(5, 4, WHITE);
			bmd.setPixel32(6, 4, BLACK);
			bmd.setPixel32(7, 4, WHITE);
			bmd.setPixel32(8, 4, WHITE);
			bmd.setPixel32(9, 4, BLACK);
			bmd.setPixel32(10, 4, BLACK);
			bmd.setPixel32(11, 4, WHITE);
			bmd.setPixel32(12, 4, WHITE);
			bmd.setPixel32(13, 4, BLACK);
			bmd.setPixel32(14, 4, BLACK);
			bmd.setPixel32(15, 4, WHITE);
			
			bmd.setPixel32(2, 5, WHITE);
			bmd.setPixel32(3, 5, BLACK);
			bmd.setPixel32(4, 5, WHITE);
			bmd.setPixel32(6, 5, BLACK);
			bmd.setPixel32(7, 5, WHITE);
			bmd.setPixel32(8, 5, WHITE);
			bmd.setPixel32(9, 5, BLACK);
			bmd.setPixel32(10, 5, BLACK);
			bmd.setPixel32(12, 5, WHITE);
			bmd.setPixel32(13, 5, BLACK);
			bmd.setPixel32(14, 5, WHITE);
			
			bmd.setPixel32(3, 6, WHITE);
			bmd.setPixel32(6, 6, BLACK);
			bmd.setPixel32(7, 6, WHITE);
			bmd.setPixel32(8, 6, WHITE);
			bmd.setPixel32(9, 6, BLACK);
			bmd.setPixel32(10, 6, BLACK);
			bmd.setPixel32(13, 6, WHITE);

			bmd.setPixel32(2, 7, BLACK);
			bmd.setPixel32(3, 7, BLACK);
			bmd.setPixel32(4, 7, BLACK);
			bmd.setPixel32(6, 7, BLACK);
			bmd.setPixel32(7, 7, WHITE);
			bmd.setPixel32(8, 7, WHITE);
			bmd.setPixel32(9, 7, BLACK);
			bmd.setPixel32(10, 7, BLACK);
			bmd.setPixel32(11, 7, BLACK);
			bmd.setPixel32(12, 7, BLACK);
			bmd.setPixel32(13, 7, BLACK);
			
			bmd.setPixel32(1, 8, BLACK);
			bmd.setPixel32(2, 8, WHITE);
			bmd.setPixel32(3, 8, WHITE);
			bmd.setPixel32(4, 8, BLACK);
			bmd.setPixel32(5, 8, BLACK);
			bmd.setPixel32(6, 8, BLACK);
			bmd.setPixel32(7, 8, WHITE);
			bmd.setPixel32(8, 8, WHITE);
			bmd.setPixel32(9, 8, BLACK);
			bmd.setPixel32(10, 8, WHITE);
			bmd.setPixel32(11, 8, BLACK);
			bmd.setPixel32(12, 8, WHITE);
			bmd.setPixel32(13, 8, BLACK);
			bmd.setPixel32(14, 8, BLACK);
			bmd.setPixel32(15, 8, BLACK);
			
			bmd.setPixel32(2, 9, BLACK);
			bmd.setPixel32(3, 9, WHITE);
			bmd.setPixel32(4, 9, WHITE);
			bmd.setPixel32(5, 9, BLACK);
			bmd.setPixel32(6, 9, BLACK);
			bmd.setPixel32(7, 9, WHITE);
			bmd.setPixel32(8, 9, WHITE);
			bmd.setPixel32(9, 9, BLACK);
			bmd.setPixel32(10, 9, WHITE);
			bmd.setPixel32(11, 9, BLACK);
			bmd.setPixel32(12, 9, WHITE);
			bmd.setPixel32(13, 9, BLACK);
			bmd.setPixel32(14, 9, WHITE);
			bmd.setPixel32(15, 9, BLACK);
			bmd.setPixel32(16, 9, BLACK);
			
			bmd.setPixel32(3, 10, BLACK);
			bmd.setPixel32(4, 10, WHITE);
			bmd.setPixel32(5, 10, WHITE);
			bmd.setPixel32(6, 10, BLACK);
			bmd.setPixel32(7, 10, WHITE);
			bmd.setPixel32(8, 10, WHITE);
			bmd.setPixel32(9, 10, WHITE);
			bmd.setPixel32(10, 10, WHITE);
			bmd.setPixel32(11, 10, WHITE);
			bmd.setPixel32(12, 10, WHITE);
			bmd.setPixel32(13, 10, BLACK);
			bmd.setPixel32(14, 10, WHITE);
			bmd.setPixel32(15, 10, BLACK);
			bmd.setPixel32(16, 10, BLACK);
			
			bmd.setPixel32(3, 11, BLACK);
			bmd.setPixel32(4, 11, WHITE);
			bmd.setPixel32(5, 11, WHITE);
			bmd.setPixel32(6, 11, BLACK);
			bmd.setPixel32(7, 11, WHITE);
			bmd.setPixel32(8, 11, WHITE);
			bmd.setPixel32(9, 11, WHITE);
			bmd.setPixel32(10, 11, WHITE);
			bmd.setPixel32(11, 11, WHITE);
			bmd.setPixel32(12, 11, WHITE);
			bmd.setPixel32(13, 11, WHITE);
			bmd.setPixel32(14, 11, WHITE);
			bmd.setPixel32(15, 11, BLACK);
			bmd.setPixel32(16, 11, BLACK);
			
			bmd.setPixel32(4, 12, BLACK);
			bmd.setPixel32(5, 12, WHITE);
			bmd.setPixel32(6, 12, WHITE);
			bmd.setPixel32(7, 12, WHITE);
			bmd.setPixel32(8, 12, WHITE);
			bmd.setPixel32(9, 12, WHITE);
			bmd.setPixel32(10, 12, WHITE);
			bmd.setPixel32(11, 12, WHITE);
			bmd.setPixel32(12, 12, WHITE);
			bmd.setPixel32(13, 12, WHITE);
			bmd.setPixel32(14, 12, WHITE);
			bmd.setPixel32(15, 12, BLACK);
			bmd.setPixel32(16, 12, BLACK);
			
			bmd.setPixel32(5, 13, BLACK);
			bmd.setPixel32(6, 13, WHITE);
			bmd.setPixel32(7, 13, WHITE);
			bmd.setPixel32(8, 13, WHITE);
			bmd.setPixel32(9, 13, WHITE);
			bmd.setPixel32(10, 13, WHITE);
			bmd.setPixel32(11, 13, WHITE);
			bmd.setPixel32(12, 13, WHITE);
			bmd.setPixel32(13, 13, WHITE);
			bmd.setPixel32(14, 13, WHITE);
			bmd.setPixel32(15, 13, BLACK);
			bmd.setPixel32(16, 13, BLACK);
			
			bmd.setPixel32(5, 14, BLACK);
			bmd.setPixel32(6, 14, WHITE);
			bmd.setPixel32(7, 14, WHITE);
			bmd.setPixel32(8, 14, WHITE);
			bmd.setPixel32(9, 14, WHITE);
			bmd.setPixel32(10, 14, WHITE);
			bmd.setPixel32(11, 14, WHITE);
			bmd.setPixel32(12, 14, WHITE);
			bmd.setPixel32(13, 14, WHITE);	
			bmd.setPixel32(14, 14, BLACK);
			bmd.setPixel32(15, 14, BLACK);
			
			bmd.setPixel32(6, 15, BLACK);
			bmd.setPixel32(7, 15, WHITE);
			bmd.setPixel32(8, 15, WHITE);
			bmd.setPixel32(9, 15, WHITE);
			bmd.setPixel32(10, 15, WHITE);
			bmd.setPixel32(11, 15, WHITE);
			bmd.setPixel32(12, 15, WHITE);
			bmd.setPixel32(13, 15, WHITE);
			bmd.setPixel32(14, 15, BLACK);
			bmd.setPixel32(15, 15, BLACK);
			
			bmd.setPixel32(6, 16, BLACK);
			bmd.setPixel32(7, 16, WHITE);
			bmd.setPixel32(8, 16, WHITE);
			bmd.setPixel32(9, 16, WHITE);
			bmd.setPixel32(10, 16, WHITE);
			bmd.setPixel32(11, 16, WHITE);
			bmd.setPixel32(12, 16, WHITE);
			bmd.setPixel32(13, 16, WHITE);
			bmd.setPixel32(14, 16, BLACK);
			bmd.setPixel32(15, 16, BLACK);
			
			bitmapData = bmd;
			
			filters = [ new DropShadowFilter(2, 45, 0x000000, .6, 3, 3) ];
		}
	}
}